namespace nHydrate.EFCore.DataAccess
{
	/// <summary>
	/// This class can be used to optimize queries or report information about the operations
	/// </summary>
	public partial class QueryOptimizer
	{
		/// <summary>
		/// Determines if the query use select locks
		/// </summary>
		public bool NoLocking { get; set; }

		/// <summary>
		/// Determines the total time a query took to run
		/// </summary>
		public long TotalMilliseconds { get; set; }

		/// <summary>
		/// Default constructor
		/// </summary>
		public QueryOptimizer()
		{
			this.NoLocking = false;
		}

		/// <summary>
		/// Initializes a new instance of this object using the specified NoLocking property
		/// </summary>
		/// <param name="noLocking">Determines if the query use select locks</param>
		public QueryOptimizer(bool noLocking)
			: this()
		{
			this.NoLocking = noLocking;
		}

	}
}
